import request from './request'

// get请求
export function GetAxios(url, data) {
  if (!data) {
    data = {}
  }
  return request({
    url: url,
    method: 'get',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
    },
    params: data
  })
}
// post请求
export function PostAxios(url, data) {
  if (!data) {
    data = {}
  }
  return request({
    url: url,
    method: 'post',
    headers: { 'Content-Type': 'application/json' },
    data
  })
}
